Optimal. Leaf size=102 \[ \frac {\sec (e+f x) \sqrt {a \sin (e+f x)+a} \sqrt {c-c \sin (e+f x)} \log (\sin (e+f x))}{c f}-\frac {a \cos (e+f x) \log (1-\sin (e+f x))}{f \sqrt {a \sin (e+f x)+a} \sqrt {c-c \sin (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.46, antiderivative size = 102, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 6, integrand size = 36, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {2942, 2737, 2667, 31, 2948, 3475} \[ \frac {\sec (e+f x) \sqrt {a \sin (e+f x)+a} \sqrt {c-c \sin (e+f x)} \log (\sin (e+f x))}{c f}-\frac {a \cos (e+f x) \log (1-\sin (e+f x))}{f \sqrt {a \sin (e+f x)+a} \sqrt {c-c \sin (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 2667
Rule 2737
Rule 2942
Rule 2948
Rule 3475
Rubi steps
\begin {align*} \int \frac {\csc (e+f x) \sqrt {a+a \sin (e+f x)}}{\sqrt {c-c \sin (e+f x)}} \, dx &=\frac {\int \csc (e+f x) \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)} \, dx}{c}+\int \frac {\sqrt {a+a \sin (e+f x)}}{\sqrt {c-c \sin (e+f x)}} \, dx\\ &=\frac {(a c \cos (e+f x)) \int \frac {\cos (e+f x)}{c-c \sin (e+f x)} \, dx}{\sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}+\frac {\left (\sec (e+f x) \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}\right ) \int \cot (e+f x) \, dx}{c}\\ &=\frac {\log (\sin (e+f x)) \sec (e+f x) \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}{c f}-\frac {(a \cos (e+f x)) \operatorname {Subst}\left (\int \frac {1}{c+x} \, dx,x,-c \sin (e+f x)\right )}{f \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}\\ &=-\frac {a \cos (e+f x) \log (1-\sin (e+f x))}{f \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}+\frac {\log (\sin (e+f x)) \sec (e+f x) \sqrt {a+a \sin (e+f x)} \sqrt {c-c \sin (e+f x)}}{c f}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] time = 1.33, size = 144, normalized size = 1.41 \[ \frac {\sqrt {2} \left (e^{i (e+f x)}-i\right ) \sqrt {a (\sin (e+f x)+1)} \left (i \left (\log \left (1-e^{2 i (e+f x)}\right )-\log \left (1+e^{2 i (e+f x)}\right )\right )+2 \tan ^{-1}\left (e^{i (e+f x)}\right )\right )}{f \left (e^{i (e+f x)}+i\right ) \sqrt {i c e^{-i (e+f x)} \left (e^{i (e+f x)}-i\right )^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [F] time = 0.64, size = 0, normalized size = 0.00 \[ {\rm integral}\left (\frac {\sqrt {a \sin \left (f x + e\right ) + a} \sqrt {-c \sin \left (f x + e\right ) + c}}{c \cos \left (f x + e\right )^{2} + c \sin \left (f x + e\right ) - c}, x\right ) \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.47, size = 111, normalized size = 1.09 \[ \frac {\sqrt {a \left (1+\sin \left (f x +e \right )\right )}\, \left (-1+\cos \left (f x +e \right )+\sin \left (f x +e \right )\right ) \left (2 \ln \left (-\frac {-1+\cos \left (f x +e \right )+\sin \left (f x +e \right )}{\sin \left (f x +e \right )}\right )-\ln \left (-\frac {-1+\cos \left (f x +e \right )}{\sin \left (f x +e \right )}\right )\right )}{f \left (-1+\cos \left (f x +e \right )-\sin \left (f x +e \right )\right ) \sqrt {-c \left (\sin \left (f x +e \right )-1\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.43, size = 59, normalized size = 0.58 \[ \frac {\frac {2 \, \sqrt {a} \log \left (\frac {\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1} - 1\right )}{\sqrt {c}} - \frac {\sqrt {a} \log \left (\frac {\sin \left (f x + e\right )}{\cos \left (f x + e\right ) + 1}\right )}{\sqrt {c}}}{f} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \frac {\sqrt {a+a\,\sin \left (e+f\,x\right )}}{\sin \left (e+f\,x\right )\,\sqrt {c-c\,\sin \left (e+f\,x\right )}} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \frac {\sqrt {a \left (\sin {\left (e + f x \right )} + 1\right )}}{\sqrt {- c \left (\sin {\left (e + f x \right )} - 1\right )} \sin {\left (e + f x \right )}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________